 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="title">
            <h2><a href="#" class="back" onclick="history.go(-1)"/>Relatório Financeiro</h2>
        </ui:define>

        <ui:define name="body">

            <h:form id="form" enctype="multipart/form-data">

                <p:panel id="relatorioPanel" styleClass="container_24 clearfix">

                    <p:panel id="dadosGeraisPanel" styleClass="container_24 clearfix">

                        <p:dataTable id="financeiroDataTable" styleClass="grid_24" var="item"
                                     value="#{managerRelatorio.relatorioFinanceiro}"
                                     rows="3" paginator="false" sortBy="#{item.sort}">
                            <p:column headerText="Participante">
                                <h:outputLabel value="#{item.participante}"/>
                            </p:column>

                            <p:column headerText="Quantidade">
                                <h:outputLabel value="#{item.quantidade}"/>
                            </p:column>

                            <p:column headerText="Valor unitário">
                                <h:outputText value="#{item.valorParticipante}">
                                    <f:convertNumber type="currency" currencySymbol="R$ " locale="pt-BR"/>
                                </h:outputText>
                            </p:column>
                            
                            <p:column headerText="Valor Total">
                                <h:outputText value="#{item.valor}">
                                    <f:convertNumber type="currency" currencySymbol="R$ " locale="pt-BR"/>
                                </h:outputText>
                            </p:column>

                            <p:summaryRow>
                                <p:column colspan="3" style="text-align:right">
                                    <h:outputText value="Total:" />
                                </p:column>
                                <p:column>
                                    <h:outputText value="#{managerRelatorio.total}">
                                        <f:convertNumber type="currency" currencySymbol="R$ " locale="pt-BR" />
                                    </h:outputText>
                                </p:column>
                            </p:summaryRow>
                        </p:dataTable>

                    </p:panel>

                    <div class="buttonAction">
                        <p:button value="Cancelar" icon="ui-icon-circle-close" href="index.xhtml" />
                    </div>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>



